import { TargetType, StatusType } from '../../services/log.service';

export interface SelectData {
    id: number;
    name: string;
}

export const TargetDataList: SelectData[] = [
    { id: 0, name: '更新对象' },
    { id: TargetType.OS, name: '操作系统' },
    { id: TargetType.Software, name: '应用软件' }
]

export const StatusDataList: SelectData[] = [
    { id: 0, name: '更新状态' },
    { id: StatusType.Success, name: '成功' },
    { id: StatusType.Failure, name: '失败' }
];

export const ErrorCodeDataList: SelectData[] = [
	{id: 3, name: 'SIGQUIT'},
	{id: 4, name: 'SIGILL'},
	{id: 5, name: 'SIGTRAP'},
	{id: 6, name: 'SIGABRT'},
	{id: 7, name: 'SIGBUS'},
	{id: 8, name: 'SIGFPE'},
	{id: 11, name: 'SIGSEGV'}
];
